#include <stdio.h>
#include <unistd.h> // access
#include "platform.h"

char fileExists(char* _passedFilename){
	#if PLATFORM == P_LINUX
		if( access( _passedFilename, F_OK ) != -1 ) {
			return 1;
		} else {
			return 0;
		}
	#else
		FILE* fp = fopen(_passedFilename,"r");
		if (fp==NULL){
			return 0;
		}
		fclose(fp);
		return 1;
	#endif
} 
